package com.bestcem.xm.user.service;

import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.user.service.dto.user.UserPrivateKeyDTO;

/**
 * 公钥私钥基础服务
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/24 15:03
 */
public interface UserPrivateKeyService {

    /**
     * 根据主键id查询公钥私钥信息
     *
     * @param privateKeyId 主键id
     * @return com.bestcem.xm.util.ServiceResult<com.bestcem.xm.user.service.dto.user.UserPrivateKeyDTO>
     * @author cuiqiongyu <qiongyu.cui@idiaoyan.cn>
     * @date 2022/03/24 15:07
     */
    public ServiceResult<UserPrivateKeyDTO> selectById(String privateKeyId);

    /**
     * 新增公钥私钥信息
     *
     * @param userPrivateKeyDTO 公钥私钥信息
     * @return com.bestcem.xm.util.ServiceResult<java.lang.String>
     * @author cuiqiongyu <qiongyu.cui@idiaoyan.cn>
     * @date 2022/03/24 15:08
     */
    public ServiceResult<String> insertSelective(UserPrivateKeyDTO userPrivateKeyDTO);

    /**
     * 根据id删除公钥私钥记录
     *
     * @param privateKeyId 公钥私钥记录id
     * @return com.bestcem.xm.util.ServiceResult<java.lang.Void>
     * @author cuiqiongyu <qiongyu.cui@idiaoyan.cn>
     * @date 2022/03/25 15:24
     */
    public ServiceResult<Void> deleteById(String privateKeyId);

}
